﻿using ASmile.Com;
using ASmile.Win;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ASmile.CodeFactory
{
    class Startup
    {
        public static void Run()
        {
            ConfigCom.Set(new ConfigCom 
            {
                CoreDbType = "sqlite",
                CoreDbConnStr = "Data Source=CodeFactory.db;",                
            });


            Global.Init(() =>
            {
                Application.Run(new FrmMain());
                return true;
            });
        }
    }
}